﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter21.Models.TaskSamples
{
    public class Demo
    {
        public Demo()
        {
            SyncBoot = new object();
        }

        public static object SyncBoot { get; private set; }

        public static void TaskMethod(object title)
        {
            lock (SyncBoot)
            {

                Console.WriteLine(title);
            }
        }
    }
}
